<%@page import="com.itwill.ecom.orders.OrdersBeans"%>
<%@page import="com.itwill.ecom.orders.OrdersService"%>
<%@page import="com.itwill.ecom.ordersDetail.OrdersDetailBeans"%>
<%@page import="com.itwill.ecom.ordersDetail.OrdersDetailService"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@page import="org.springframework.web.context.WebApplicationContext"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	WebApplicationContext webContext = WebApplicationContextUtils.getWebApplicationContext(application);
	OrdersDetailService detailService = (OrdersDetailService)webContext.getBean("ordersDetailService");
	//OrdersService ordersService = (OrdersService)webContext.getBean("ordersDetailService");
	
	int odetailNo = Integer.parseInt(request.getParameter("odetailno"));
	//int ordersNo = Integer.parseInt(request.getParameter("ordersno"));
	OrdersDetailBeans odetail = detailService.getNo(odetailNo);
	//OrdersBeans orders = ordersService.getOrdersByOrdersNo(ordersNo);
%>
[{
	"odetail_no" : "<%= odetail.getOdetail_no() %>",
	"odetail_ordersno" : "<%= odetail.getOdetail_ordersno() %>",
	"odetail_product" : "<%= odetail.getOdetail_product() %>",
	"odetail_count" : "<%= odetail.getOdetail_count() %>"
}]
